using System.Collections;
using System.Collections.Generic;
using Game;
using Game.WeaponComponent;
using UnityEngine;

namespace  Game.WeaponComponent {
    /// <summary>
    /// 基础生成组件
    /// </summary>
    public class BaseSpawnerComponent : ABSWeaponComponent {
        public int SpawnNum = 1;//生成数量
        public BaseSpawnerComponent(ABSWeaponCombinant combinant) : base(combinant) {
        }

        protected override void onTrigger() {
            onSpawn();
        }

        protected virtual void onSpawn() {
            mCurCombinant.TriggerCount();
        }
    }   
}
